home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / O Boy / Source / FinderAppAEObj_pd.cp < prev    next >
Text File  |  1996-06-21  |  2KB  |  92 lines

  1. /*
  2.     FinderFinderAppAEObj_pd.h
  3.     © Bob Boylan 1996
  4.  
  5.     Revision History
  6.     MacHack 1996        initial creation
  7. */
  8. #include "debug.h"
  9. #include "FinderAppAEObj_pd.h"
  10. #include "PropertyValue_pd.h"
  11. #include "ComputerAETE_da.h"
  12. #include "Helpers_ut.h"
  13. #include "FinderAETE_da.h"
  14. #include "AEBuild.h"
  15.  
  16. #include <string.h>
  17. #include <sstream>
  18.  
  19.  
  20.  
  21. //    -----------------------------------------------------------------
  22. //    ctor
  23. //
  24. FinderAppAEObj_pd::FinderAppAEObj_pd( AEObj_pd * inParent, DescType inKind, Int_32 inIndex )
  25.     : AppAEObj_pd( inParent, inKind, inIndex )
  26. {
  27.  
  28. }
  29. //    -----------------------------------------------------------------
  30. //    dtor
  31. //
  32. FinderAppAEObj_pd::~FinderAppAEObj_pd()
  33. {}
  34. //    -----------------------------------------------------------------
  35. //    Update
  36. //
  37. void
  38. FinderAppAEObj_pd::Update( ProgressProc_hi &inProgressProc, Int_32 inMaxSubModels )
  39. {
  40.     // make sure the application address is proper
  41.     if( _HaveAppAddr == false )
  42.     {
  43.         _AppSignature = 'MACS';
  44.         IsValidAETE();
  45.         _HaveAppAddr = true;
  46.     }
  47.     
  48.  
  49.     if( _HaveAppAddr == true )
  50.     {
  51.         AEObj_pd::Update( inProgressProc, inMaxSubModels );
  52.     }
  53. }
  54.     
  55.  
  56. //    -----------------------------------------------------------------
  57. //    IsScriptable ... of course
  58. //
  59. Boolean
  60. FinderAppAEObj_pd::IsScriptable()
  61. {
  62.     return true;
  63. }
  64.  
  65.  
  66.  
  67.  
  68. //    -----------------------------------------------------------------
  69. //    GetName
  70. //
  71. string
  72. FinderAppAEObj_pd::GetName()
  73. {
  74. string    theRetVal = string("Finder");
  75.     return theRetVal;
  76. }
  77. //    -----------------------------------------------------------------
  78. //    IsValidAETE
  79. //
  80. Boolean
  81. FinderAppAEObj_pd::IsValidAETE()
  82. {
  83.     if( (_AETE.Isnil() == true) && (_HaveAppAddr == false) )
  84.     {
  85.         AETE_da *theAETE = new FinderAETE_da( this );
  86.         Clone_ut< AETE_da >    theClonedAETE( theAETE );
  87.         _AETE = theClonedAETE;
  88.     }
  89.     return !(_AETE.Isnil());
  90.  
  91. }
  92.